package opensocial.apps.treat.model
{
	public class User
	{

	  public function User(id:String, name:String = null, photoPath:String = null):void {
	    _id = id;
	    _name = name;
	    _photoPath = photoPath;
	    _status = 0;
	  }  

	  private var _id:String;
	  
	  public function set id(value:String):void {
	    _id = value;
	  }
	  
	  public function get id():String {
	    return _id;
	  }
  
		private var _name:String;
		
		public function set name(value:String):void {
		  _name = value;
		}
		
		public function get name():String {
		  return _name;
		}
		
		private var _level:Level;
		
		public function set level(value:Level):void {
		  _level = value;
		}
		
		public function get level():Level {
		  return _level;
		}
		
		private var _popularity:Number;
		
		public function set popularity(value:Number):void {
		  _popularity = value;
		}
		
		public function get popularity():Number {
		  return _popularity;
		}
		
		private var _money:Number;
		
		public function set money(value:Number):void {
		  _money = value;
		}
		
		public function get money():Number {
		  return _money;
		}
		
		private var _photoPath:String;
		
		public function set photoPath(value:String):void {
		  _photoPath = value;
		}
		
		public function get photoPath():String {
		  return _photoPath;
		}
		
		private var _status:Number;
		
		public function set status(value:Number):void {
		  _status = value;
		}
		
		public function get status():Number {
		  return _status;
		}
		
		private var _selected:Boolean;
		
		public function set selected(value:Boolean):void {
		  _selected = value;
		}
		
		public function get selected():Boolean {
		  return _selected;
		}
		
		private var _theme:Number;
		
		public function set theme(value:Number):void {
		  _theme = value;
		}
		
		public function get theme():Number {
		  return _theme || 1;
		}
		
		private var _leftover:Boolean;
		
		public function set leftover(value:Boolean):void {
		  _leftover = value;
		}
		
		public function get leftover():Boolean {
		  return _leftover;
		}
		
		private var _message: Message;
		public function set message (m: Message): void {
			_message = m;
		}
		public function get message (): Message {
			if (!_message)
				_message = new Message();
			return _message;
		}
		
		public function toString():String {
		  return this._id + '--' + this.name + '--' + this._money + '--' + this._theme ;
		}
	}
}